#include "media_init.h"
#include "media_diagnosis.h"
#include "media_snap_manager.h"
#include "media_osd.h"
namespace El {
namespace Media {

bool stream_init(nlohmann::json &config)
{
    (void)config;
    CStreamDiagnosis::GetInstance().Start();

    for (uint32_t i = 0; i < CHANNEL_MAX; i++) {
        SnapManager::GetInstance(i, MEDIA_VIDEO_ENC_STREAM_SNAPSHOT).Start();
        SnapManager::GetInstance(i, MEDIA_VIDEO_ENC_STREAM_SMALL_SNAPSHOT).Start();
    }

    OSDManager::GetInstance().Start();
    return true;
}

} // namespace Media
} // namespace El